package br.com.pnfp.web.view.tag;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.tagext.TagSupport;

public class HeaderTag extends TagSupport {
	
	private static final long serialVersionUID = -5420543802237022930L;

	@Override
	public int doStartTag() throws JspException {

		JspWriter out = pageContext.getOut();
		
		StringBuilder html = new StringBuilder();
		html.append("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />");
		html.append("<meta http-equiv=\"Cache-Control\" content=\"no-cache, no-store\"/>\n");
		html.append("<meta http-equiv=\"Pragma\" content=\"no-cache, no-store\"/>\n");
		html.append("<meta http-equiv=\"expires\" content=\"Mon, 06 Jan 1990 00:00:01 GMT\"/>\n");
		html.append("<title>Sistema de Cadastro de Nota Fiscal Paulista</title>\n");
		html.append("<link rel=\"stylesheet\" type=\"text/css\" href=\"_css/estilo.css\">\n");
		html.append("<script type=\"text/javascript\" src=\"_scripts/dojo-release-1.7.1/dojo/dojo.js\" data-dojo-config=\"parseOnLoad: true, isDebug: false\"></script>\n");
		html.append("<script type=\"text/javascript\" src=\"_scripts/jquery-min-1.3.2.js\"></script>\n");
		html.append("<script type=\"text/javascript\" src=\"_scripts/jquery.maskedinput-1.3.min.js\"></script>\n");
		html.append("<script language=\"javascript\" src=\"_scripts/scripts.js\"></script>");
		
		try {
			out.print(html.toString());
		} catch (IOException e) {
			e.printStackTrace();
		}
		return super.doStartTag();
	}

}
